package com.erp.order.purchasing.service;

import com.erp.hr.base.service.BaseService;
import com.erp.hr.base.vo.ResultVO;
import com.erp.order.purchasing.model.PurchaseOrder;
import org.redragon.framework.hibernate.model.Pages;
import java.util.List;

/**
 * 采购订单 业务层
 * @Author: syz
 * @blame syz
 * @CreateTime: 2021/4/6
 */
public interface PurchaseOrderService extends BaseService<PurchaseOrder> {

    /**
     * 将询价单转换为采购订单
     * @param id 询价单id
     */
    void inquiryListToPurchaseOrder(Long id);

    /**
     * 设置订单金额
     * @param purchaseOrder 采购订单对象
     * @return 设置结果
     */
    ResultVO<String> setMoney(PurchaseOrder purchaseOrder);

    /**
     * 更新订单状态
     * @param id 采购订单id
     * @return 更新结果
     */
    ResultVO<String> changeStatus(String id);

    List<PurchaseOrder> getDatasBySupplyid(String username,PurchaseOrder purchaseOrder, Pages pages);

    PurchaseOrder getDataObject(Long id);

}